from selenium import webdriver
from selenium.webdriver.common.by import By
from time import sleep
from postion import options
from postion import service
from login_para import Login

url=r'http://192.168.92.131/upload/'
username = 'sky192'
password = '123456'
email = 'ahka@qq.com'
driver=webdriver.Chrome(options=options,service=service)
driver.get(url)
driver.maximize_window()
#注册
login = Login(driver)
login.register(username,password,email)
#退出

login.logout()
# driver.find_element(By.LINK_TEXT,'退出').click()
# sleep(3)
driver.quit()